module.exports = function (env, project) {
  let server = {}
  if (env) {
    if(project.includes('swy')) {
      // 食无忧项目
      switch (env) {
        case 'dev':
          server = {
            username: 'root',
            password: '12345678',
            host: '192.168.50.254',
            port: 22,
            remoteRoot: '/data/wwwroot/swyms'
          }
          break ;
        case 'dev4':
          server = {
            username: 'root',
            password: 'pipa1234',
            host: '192.168.50.195',
            port: 22,
            remoteRoot: '/data/wwwroot/swyms'
          } ;
          break;
        case 'dev5':
          server = {
            username: 'root',
            password:'pipa1234',
            host: '192.168.50.210',
            port: 22,
            remoteRoot: '/data/wwwroot/swyms'
          };
          break;
        case 'test':
          server = {
            username: 'webroot',
            password: '12345678',
            host: '192.168.50.239',
            port: 22,
            remoteRoot: '/data/wwwroot/swyms'
          };
          break;
        case 'pro':
          server = {
            username: 'root',
            password: 'qmzjYYlh65D6NMH0',
            host: '39.98.121.31',
            port: 22,
            remoteRoot: '/data/wwwroot/admin'
          };
          break;
        case 'prot':
          server = {
            username: 'root',
            password: 'pipawuyou_w1',
            host: '39.98.40.97',
            port: 22,
            remoteRoot: '/data/wwwroot/swytest/admin'
          };
          break;
      }
    }
    if (project.includes('thd')){
      // 桃花岛项目
      switch (env) {
        case 'dev':
          server = {
            username:'root',
            password:'Swy123456789',
            host: '47.92.104.237',
            port: 22,
            remoteRoot:'/data/wwwroot/thdms'
          };
          break;
        case 'test':
          server = {
            username: 'root',
            password: 'Swy123456789',
            host: '47.92.198.238',
            port: 22,
            remoteRoot: '/data/wwwroot/thdms'
          };
          break;
        case 'pro':
          server = {
            username: 'thd',
            password: 'thd123456a',
            host: '47.101.33.16',
            port: 22,
            remoteRoot: '/data/wwwroot/admin'
          };
          break;
      }
    }
    if (project.includes('cwy')) {
      //茶无忧项目
      switch (env) {
        case 'dev':
          server = {
            username: 'cwy',
            password: '12345678',
            host: '192.168.50.240',
            port: 22,
            remoteRoot: '/data/wwwroot/cwyms'
          };
          break;
        case 'pro':
          server = {
            username: 'cwy',
            password: 'cwy10308',
            host: '47.103.78.244',
            port: 22,
            remoteRoot: '/data/wwwroot/cwyms'
          };
          break;
      }
    }
    if (project.includes('xtsj')) {
      //茶无忧项目
      switch (env) {
        case 'dev':
          server = {
            username: 'cwy',
            password: '12345678',
            host: '192.168.50.240',
            port: 22,
            remoteRoot: '/data/wwwroot/cwyms'
          }
          break;
        case 'pro':
          server = {
            username: 'root',
            password: 'pipawuyou_w1',
            host: '39.98.40.97',
            port: 22,
            remoteRoot: '/data/wwwroot/xiaotian_page/admin/'
          }
          break;
      }
    }
  };
  return server
};
